Remove unused variable.
Bug: N/A
Test: builds
Change-Id: I983f361d3d5a779600077a78b121c4ee399089db
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp
index 3b4f4b2..3a3503e 100644
--- a/fastboot/fastboot.cpp
+++ b/fastboot/fastboot.cpp
@@ -1027,13 +1027,12 @@
static void set_active(Transport* transport, const std::string& slot_override) {
if (!supports_AB(transport)) return;
- std::string separator = "";
if (slot_override != "") {
- fb_set_active(separator + slot_override);
+ fb_set_active(slot_override);
} else {
std::string current_slot = get_current_slot(transport);
if (current_slot != "") {
- fb_set_active(separator + current_slot);
+ fb_set_active(current_slot);
}
}
}