diff --git a/power-libperfmgr/Power.cpp b/power-libperfmgr/Power.cpp index c86621d..3e35c69 100644 --- a/power-libperfmgr/Power.cpp +++ b/power-libperfmgr/Power.cpp @@ -20,7 +20,6 @@ #include #include #include -#include #include #include @@ -219,29 +218,6 @@ Return Power::powerHintAsync_1_3(PowerHint_1_3 hint, int32_t data) { return Void(); } -constexpr const char *boolToString(bool b) { - return b ? "true" : "false"; -} - -Return Power::debug(const hidl_handle &handle, const hidl_vec &) { - if (handle != nullptr && handle->numFds >= 1 && mReady) { - int fd = handle->data[0]; - - std::string buf(android::base::StringPrintf( - "HintManager Running: %s\n" - "SustainedPerformanceMode: %s\n", - boolToString(mHintManager->IsRunning()), - boolToString(mSustainedPerfModeOn))); - // Dump nodes through libperfmgr - mHintManager->DumpToFd(fd); - if (!android::base::WriteStringToFd(buf, fd)) { - PLOG(ERROR) << "Failed to dump state to fd"; - } - fsync(fd); - } - return Void(); -} - } // namespace implementation } // namespace V1_3 } // namespace power diff --git a/power-libperfmgr/Power.h b/power-libperfmgr/Power.h index ee202b6..3855134 100644 --- a/power-libperfmgr/Power.h +++ b/power-libperfmgr/Power.h @@ -66,7 +66,6 @@ class Power : public IPower { Return powerHintAsync_1_3(PowerHint_1_3 hint, int32_t data) override; // Methods from ::android::hidl::base::V1_0::IBase follow. - Return debug(const hidl_handle &fd, const hidl_vec &args) override; private: std::shared_ptr mHintManager;