Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
dab7dde3
Commit
dab7dde3
authored
Jan 21, 2016
by
kgiesing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused close method from AssetBundle
parent
abb17ea9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
asset_bundle.dart
packages/flutter/lib/src/services/asset_bundle.dart
+0
-9
No files found.
packages/flutter/lib/src/services/asset_bundle.dart
View file @
dab7dde3
...
@@ -19,7 +19,6 @@ import 'image_resource.dart';
...
@@ -19,7 +19,6 @@ import 'image_resource.dart';
import
'shell.dart'
;
import
'shell.dart'
;
abstract
class
AssetBundle
{
abstract
class
AssetBundle
{
void
close
();
ImageResource
loadImage
(
String
key
);
ImageResource
loadImage
(
String
key
);
Future
<
String
>
loadString
(
String
key
);
Future
<
String
>
loadString
(
String
key
);
Future
<
core
.
MojoDataPipeConsumer
>
load
(
String
key
);
Future
<
core
.
MojoDataPipeConsumer
>
load
(
String
key
);
...
@@ -30,8 +29,6 @@ class NetworkAssetBundle extends AssetBundle {
...
@@ -30,8 +29,6 @@ class NetworkAssetBundle extends AssetBundle {
final
Uri
_baseUrl
;
final
Uri
_baseUrl
;
void
close
()
{
}
String
_urlFromKey
(
String
key
)
=>
_baseUrl
.
resolve
(
key
).
toString
();
String
_urlFromKey
(
String
key
)
=>
_baseUrl
.
resolve
(
key
).
toString
();
Future
<
core
.
MojoDataPipeConsumer
>
load
(
String
key
)
async
{
Future
<
core
.
MojoDataPipeConsumer
>
load
(
String
key
)
async
{
...
@@ -66,12 +63,6 @@ class MojoAssetBundle extends AssetBundle {
...
@@ -66,12 +63,6 @@ class MojoAssetBundle extends AssetBundle {
Map
<
String
,
ImageResource
>
_imageCache
=
new
Map
<
String
,
ImageResource
>();
Map
<
String
,
ImageResource
>
_imageCache
=
new
Map
<
String
,
ImageResource
>();
Map
<
String
,
Future
<
String
>>
_stringCache
=
new
Map
<
String
,
Future
<
String
>>();
Map
<
String
,
Future
<
String
>>
_stringCache
=
new
Map
<
String
,
Future
<
String
>>();
void
close
()
{
_bundle
.
close
();
_bundle
=
null
;
_imageCache
=
null
;
}
Future
<
ui
.
Image
>
_fetchImage
(
String
key
)
async
{
Future
<
ui
.
Image
>
_fetchImage
(
String
key
)
async
{
return
await
decodeImageFromDataPipe
(
await
load
(
key
));
return
await
decodeImageFromDataPipe
(
await
load
(
key
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment