Refactor: Remove code use dir to select ref_frame

In function av1_get_pred_context_switchable_interp,
the ref_frame is selected based on direction of
interpolation filter. And the condition "(dir<2)" is
always true.

Change-Id: I1ccb34e4aa9f63ec645f79f00f97b641d8373c20
diff --git a/av1/common/pred_common.c b/av1/common/pred_common.c
index d77739d..5952441 100644
--- a/av1/common/pred_common.c
+++ b/av1/common/pred_common.c
@@ -31,8 +31,8 @@
   const MB_MODE_INFO *const mbmi = xd->mi[0];
   const int ctx_offset =
       (mbmi->ref_frame[1] > INTRA_FRAME) * INTER_FILTER_COMP_OFFSET;
-  MV_REFERENCE_FRAME ref_frame =
-      (dir < 2) ? mbmi->ref_frame[0] : mbmi->ref_frame[1];
+  assert(dir == 0 || dir == 1);
+  const MV_REFERENCE_FRAME ref_frame = mbmi->ref_frame[0];
   // Note:
   // The mode info data structure has a one element border above and to the
   // left of the entries corresponding to real macroblocks.