summaryrefslogtreecommitdiffstats
path: root/mtp/btree.cpp
diff options
context:
space:
mode:
authorthat <github@that.at>2014-11-08 01:18:44 +0100
committerDees Troy <dees_troy@teamw.in>2014-12-29 17:10:38 +0100
commita1ad19f0b7895e85ce7792594c8e37a6d3c92d6b (patch)
tree186174c549cdf39ce4e0bd00b3044d0de9dcb248 /mtp/btree.cpp
parentMove sleep during MTP startup to MTP thread (diff)
downloadandroid_bootable_recovery-a1ad19f0b7895e85ce7792594c8e37a6d3c92d6b.tar
android_bootable_recovery-a1ad19f0b7895e85ce7792594c8e37a6d3c92d6b.tar.gz
android_bootable_recovery-a1ad19f0b7895e85ce7792594c8e37a6d3c92d6b.tar.bz2
android_bootable_recovery-a1ad19f0b7895e85ce7792594c8e37a6d3c92d6b.tar.lz
android_bootable_recovery-a1ad19f0b7895e85ce7792594c8e37a6d3c92d6b.tar.xz
android_bootable_recovery-a1ad19f0b7895e85ce7792594c8e37a6d3c92d6b.tar.zst
android_bootable_recovery-a1ad19f0b7895e85ce7792594c8e37a6d3c92d6b.zip
Diffstat (limited to '')
-rwxr-xr-xmtp/btree.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/mtp/btree.cpp b/mtp/btree.cpp
index e53afab98..b73789bd4 100755
--- a/mtp/btree.cpp
+++ b/mtp/btree.cpp
@@ -14,7 +14,6 @@
* limitations under the License.
*/
-#include <iostream>
#include <utils/threads.h>
#include "btree.hpp"
#include "MtpDebug.h"
@@ -60,7 +59,7 @@ Node* Tree::findEntryByName(std::string name) {
}
Node* Tree::findNode(MtpObjectHandle handle) {
- std::map<MtpObjectHandle, Node*>::iterator it = entries.find(handle);
+ std::map<MtpObjectHandle, Node*>::iterator it = entries.find(handle);
if (it != entries.end())
return it->second;
return NULL;
@@ -72,7 +71,7 @@ void Tree::getmtpids(MtpObjectHandleList* mtpids) {
}
void Tree::deleteNode(MtpObjectHandle handle) {
- std::map<MtpObjectHandle, Node*>::iterator it = entries.find(handle);
+ std::map<MtpObjectHandle, Node*>::iterator it = entries.find(handle);
if (it != entries.end()) {
delete it->second;
entries.erase(it);