8000 Obsolete java code by mortend · Pull Request #263 · fuse-open/uno · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Obsolete java code #263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -150,23 +150,4 @@ public static Object CreateDummySurface(int texName)
_keepDummySurfaceTexture = new SurfaceTexture(texName);
return new Surface(_keepDummySurfaceTexture);
}

@Deprecated
public static Activity GetRootActivity()
{
Log.w("@(Activity.Name)", "GetRootActivity() is deprecated -- please use com.fuse.Activity.getRootActivity() instead.");
return com.fuse.Activity.getRootActivity();
}
@Deprecated
public static int ShowMessageBox(CharSequence caption, CharSequence message, int buttons, int hints)
{
Log.w("@(Activity.Name)", "ShowMessageBox() is deprecated.");
return -1;
}
@Deprecated
public static AssetManager GetAssetManager()
{
Log.w("@(Activity.Name)", "GetAssetManager() is deprecated.");
return com.fuse.App.getCurrent().RootActivity.getAssets();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ string GenJavaClassCode()
ftw.WriteLine("public class ExternedBlockHost");
ftw.Indent("{");

ftw.WriteLine("@Deprecated");
ftw.WriteLine("static void debug_log(Object message)");
ftw.Indent("{");
ftw.WriteLine("android.util.Log.d(\"" + _environment.GetString("Activity.Name") + "\", (message==null ? \"null\" : message.toString()));");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ string GenJavaClassCode()

if (!_nested)
{
ftw.WriteLine("@Deprecated");
ftw.WriteLine("static void debug_log(Object message)");
ftw.Indent("{");
ftw.WriteLine("android.util.Log.d(\"" + _environment.GetString("Activity.Name") + "\", (message==null ? \"null\" : message.toString()));");
Expand Down
0