Skip to content

Commit 0dacc63

Browse files
committed
Remove never used function
1 parent 618685f commit 0dacc63

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilStream.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -274,20 +274,4 @@ private void emitStreamEvent(String streamName, String event, String code, Strin
274274
eventData.putString("streamId", streamName);
275275
this.emitter.emit(EVENT_FILESYSTEM, eventData);
276276
}
277-
278-
/**
279-
* Get input stream of the given path, when the path is a string starts with bundle-assets://
280-
* the stream is created by Assets Manager, otherwise use FileInputStream.
281-
*
282-
* @param path The file to open stream
283-
* @return InputStream instance
284-
* @throws IOException If the given file does not exist or is a directory FileInputStream will throw a FileNotFoundException
285-
*/
286-
public static InputStream inputStreamFromPath(String path) throws IOException {
287-
if (path.startsWith(ReactNativeBlobUtilConst.FILE_PREFIX_BUNDLE_ASSET)) {
288-
return ReactNativeBlobUtilImpl.RCTContext.getAssets().open(path.replace(ReactNativeBlobUtilConst.FILE_PREFIX_BUNDLE_ASSET, ""));
289-
}
290-
return new FileInputStream(new File(path));
291-
}
292-
293277
}

0 commit comments

Comments
 (0)