summaryrefslogtreecommitdiff
path: root/libs/services
diff options
context:
space:
mode:
authorHector Dearman <hjd@google.com>2019-01-16 18:20:56 +0000
committerHector Dearman <hjd@google.com>2019-01-16 18:20:56 +0000
commit60b3053221448be3969332a666c7c3779b327b1b (patch)
treeb4425ab017082c1ea5e01987dee4dbb1b816fe58 /libs/services
parentefad1da2f1559decf1d8ed41d353dfa338af0a92 (diff)
Remove DropBoxManager::getNextEntry
- Remove DropBoxManager::getNextEntry as the method was unused. - Stop DropBoxManager::Entry inheriting from RefBase. This was causing bugs since DropBoxManager constructs Entry on the stack (in a non-ref counted context). Bug: 119655216 Test: make Change-Id: If0852ab6bcc1a92560132628897977eac16fddea
Diffstat (limited to 'libs/services')
-rw-r--r--libs/services/include/android/os/DropBoxManager.h5
-rw-r--r--libs/services/src/os/DropBoxManager.cpp11
2 files changed, 1 insertions, 15 deletions
diff --git a/libs/services/include/android/os/DropBoxManager.h b/libs/services/include/android/os/DropBoxManager.h
index 75b26c626d14..07472435d8a3 100644
--- a/libs/services/include/android/os/DropBoxManager.h
+++ b/libs/services/include/android/os/DropBoxManager.h
@@ -62,7 +62,7 @@ public:
// file descriptor.
Status addFile(const String16& tag, int fd, int flags);
- class Entry : public virtual RefBase, public Parcelable {
+ class Entry : public Parcelable {
public:
Entry();
virtual ~Entry();
@@ -89,9 +89,6 @@ public:
friend class DropBoxManager;
};
- // Get the next entry from the drop box after the specified time.
- Status getNextEntry(const String16& tag, long msec, Entry* entry);
-
private:
enum {
HAS_BYTE_ARRAY = 8
diff --git a/libs/services/src/os/DropBoxManager.cpp b/libs/services/src/os/DropBoxManager.cpp
index 8282518f75c6..681d5f780739 100644
--- a/libs/services/src/os/DropBoxManager.cpp
+++ b/libs/services/src/os/DropBoxManager.cpp
@@ -228,15 +228,4 @@ DropBoxManager::add(const Entry& entry)
return service->add(entry);
}
-Status
-DropBoxManager::getNextEntry(const String16& tag, long msec, Entry* entry)
-{
- sp<IDropBoxManagerService> service = interface_cast<IDropBoxManagerService>(
- defaultServiceManager()->getService(android::String16("dropbox")));
- if (service == NULL) {
- return Status::fromExceptionCode(Status::EX_NULL_POINTER, "can't find dropbox service");
- }
- return service->getNextEntry(tag, msec, android::String16("android"), entry);
-}
-
}} // namespace android::os