From cfa5b8191ff79dfcdac586ab43f3bb24d93fc171 Mon Sep 17 00:00:00 2001 From: Matt Perry Date: Thu, 1 Oct 2015 12:10:54 -0400 Subject: [PATCH] Remove old methods from Activity mojom interface after they were moved. This is part 3 of my 3 part change to add the udpater sky package. --- sky/services/activity/activity.mojom | 4 ---- .../src/org/domokit/activity/ActivityImpl.java | 16 ---------------- 2 files changed, 20 deletions(-) diff --git a/sky/services/activity/activity.mojom b/sky/services/activity/activity.mojom index fc2588deb..7e12d9dda 100644 --- a/sky/services/activity/activity.mojom +++ b/sky/services/activity/activity.mojom @@ -56,10 +56,6 @@ interface Activity { SetTaskDescription(TaskDescription description); SetSystemUIVisibility(SystemUiVisibility visibility); SetRequestedOrientation(ScreenOrientation orientation); - - // TODO(mpcomplete): moving to PathService. Remove these. - GetFilesDir() => (string path); - GetCacheDir() => (string path); }; interface PathService { diff --git a/sky/services/activity/src/org/domokit/activity/ActivityImpl.java b/sky/services/activity/src/org/domokit/activity/ActivityImpl.java index ecb9d2e3c..1cab4766b 100644 --- a/sky/services/activity/src/org/domokit/activity/ActivityImpl.java +++ b/sky/services/activity/src/org/domokit/activity/ActivityImpl.java @@ -159,20 +159,4 @@ public class ActivityImpl implements Activity { sCurrentActivity.setRequestedOrientation(androidOrientation); } - - @Override - public void getFilesDir(GetFilesDirResponse callback) { - String path = null; - if (sCurrentActivity != null) - path = sCurrentActivity.getFilesDir().getPath(); - callback.call(path); - } - - @Override - public void getCacheDir(GetCacheDirResponse callback) { - String path = null; - if (sCurrentActivity != null) - path = sCurrentActivity.getCacheDir().getPath(); - callback.call(path); - } }