Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3bb81137 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Remove unused variables."

parents 31408ce9 3e593075
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -1955,7 +1955,6 @@ binder::Status InstalldNativeService::freeCache(const std::optional<std::string>
        return error("Failed to determine free space for " + data_path);
    }

    int64_t cleared = 0;
    int64_t needed = targetFreeBytes - free;
    if (!defy_target) {
        LOG(DEBUG) << "Device " << data_path << " has " << free << " free; requested "
@@ -2056,7 +2055,6 @@ binder::Status InstalldNativeService::freeCache(const std::optional<std::string>

        // 2. Populate tracker stats and insert into priority queue
        ATRACE_BEGIN("populate");
        int64_t cacheTotal = 0;
        auto cmp = [](std::shared_ptr<CacheTracker> left, std::shared_ptr<CacheTracker> right) {
            return (left->getCacheRatio() < right->getCacheRatio());
        };
@@ -2065,7 +2063,6 @@ binder::Status InstalldNativeService::freeCache(const std::optional<std::string>
        for (const auto& it : trackers) {
            it.second->loadStats();
            queue.push(it.second);
            cacheTotal += it.second->cacheUsed;
        }
        ATRACE_END();

@@ -2111,7 +2108,6 @@ binder::Status InstalldNativeService::freeCache(const std::optional<std::string>
                }
                active->cacheUsed -= item->size;
                needed -= item->size;
                cleared += item->size;
            }

            if (!defy_target) {
+0 −2
Original line number Diff line number Diff line
@@ -523,7 +523,6 @@ int calculate_tree_size(const std::string& path, int64_t* size,
 */
bool is_valid_package_name(const std::string& packageName) {
    // This logic is borrowed from PackageParser.java
    bool hasSep = false;
    bool front = true;

    auto it = packageName.begin();
@@ -539,7 +538,6 @@ bool is_valid_package_name(const std::string& packageName) {
            }
        }
        if (c == '.') {
            hasSep = true;
            front = true;
            continue;
        }