Remove test support from aom_dsp.cmake.

Removes a dupe. The CONFIG_MOTION_VAR testing support exists
in test/test.cmake.

- Remove the source file references.
- Remove setup_aom_dsp_test_targets().

Change-Id: Ifa034582223641d6d89a3274ff293c1e65cbb73d
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7659850..057e7e0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -622,9 +622,6 @@
 if (CONFIG_UNIT_TESTS)
   # Create test_libaom target and the targets it depends on.
   setup_aom_test_targets()
-
-  # Create aom_dsp test targets and update dependent test targets.
-  setup_aom_dsp_test_targets()
 endif ()
 
 if (XCODE)
diff --git a/aom_dsp/aom_dsp.cmake b/aom_dsp/aom_dsp.cmake
index 8f6f9bf..878f4f9 100644
--- a/aom_dsp/aom_dsp.cmake
+++ b/aom_dsp/aom_dsp.cmake
@@ -270,11 +270,6 @@
       ${AOM_DSP_ENCODER_INTRIN_SSE4_1}
       "${AOM_ROOT}/aom_dsp/x86/obmc_sad_sse4.c"
       "${AOM_ROOT}/aom_dsp/x86/obmc_variance_sse4.c")
-
-  set(AOM_DSP_ENCODER_UNIT_TEST_INTRIN_SSE4_1
-      ${AOM_DSP_ENCODER_UNIT_TEST_INTRIN_SSE4_1}
-      "${AOM_ROOT}/test/obmc_sad_test.cc"
-      "${AOM_ROOT}/test/obmc_variance_test.cc")
 endif ()
 
 set(AOM_LIB_TARGETS ${AOM_LIB_TARGETS} aom_dsp_common)
@@ -369,16 +364,3 @@
   # $AOM_LIB_TARGETS.
   set(AOM_LIB_TARGETS ${AOM_LIB_TARGETS} PARENT_SCOPE)
 endfunction ()
-
-# Sets up aom_dsp test targets. The test_libaom target must be created before
-# this function is called.
-function (setup_aom_dsp_test_targets)
-  if (HAVE_SSE_4_1)
-    if (CONFIG_ENCODERS)
-      if (CONFIG_UNIT_TESTS AND AOM_DSP_ENCODER_UNIT_TEST_INTRIN_SSE4_1)
-        add_intrinsics_source_to_target("-msse4.1" "test_libaom"
-          "AOM_DSP_ENCODER_UNIT_TEST_INTRIN_SSE4_1")
-      endif ()
-    endif ()
-  endif ()
-endfunction ()