diff --git a/test/active_map_test.cc b/test/active_map_test.cc
index 6377e725a33f9f52c850a20f08468c85567fe5f5..a9bb540909b5600646b5b3b319f5bde6f6c95e32 100644
--- a/test/active_map_test.cc
+++ b/test/active_map_test.cc
@@ -83,9 +83,6 @@ TEST_P(ActiveMapTest, Test) {
   ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
 }
 
-#define VP9_FACTORY \
-  static_cast<const libvpx_test::CodecFactory *>(&libvpx_test::kVP9)
-
 VP9_INSTANTIATE_TEST_CASE(ActiveMapTest,
                           ::testing::Values(::libvpx_test::kRealTime),
                           ::testing::Range(0, 6));