Refactor encode_rd_sb_row function
Refactor encode_rd_sb_row function

Simplified the code and removed some code that was not used anymore.
This patch didn't change encoding result.

Change-Id: I7e54a74c8f35a6726dfc8a1c55b337448b7ea124

shacklettbp/aom,ittiamvpx/libvpx-1,luctrudeau/aom,gshORTON/webm.libvpx,felipebetancur/libvpx,Maria1099/webm.libvpx,Laknot/libvpx,stewnorriss/libvpx,kleopatra999/webm.libvpx,shareefalis/libvpx,thdav/aom,GrokImageCompression/aom,smarter/aom,jdm/libvpx,VTCSecureLLC/libvpx,shacklettbp/aom,altogother/webm.libvpx,shacklettbp/aom,pcwalton/libvpx,GrokImageCompression/aom,jacklicn/webm.libvpx,kim42083/webm.libvpx,thdav/aom,matanbs/vp982,jmvalin/aom,mwgoldsmith/vpx,jacklicn/webm.libvpx,goodleixiao/vpx,Acidburn0zzz/webm.libvpx,hsueceumd/test_hui,smarter/aom,matanbs/webm.libvpx,lyx2014/libvpx_c,luctrudeau/aom,luctrudeau/aom,liqianggao/libvpx,goodleixiao/vpx,webmproject/libvpx,jacklicn/webm.libvpx,Topopiccione/libvpx,stewnorriss/libvpx,mwgoldsmith/libvpx,mwgoldsmith/vpx,pcwalton/libvpx,lyx2014/libvpx_c,ittiamvpx/libvpx-1,shacklettbp/aom,ittiamvpx/libvpx-1,hsueceumd/test_hui,felipebetancur/libvpx,kim42083/webm.libvpx,matanbs/vp982,smarter/aom,mwgoldsmith/vpx,felipebetancur/libvpx,webmproject/libvpx,Acidburn0zzz/webm.libvpx,kalli123/webm.libvpx,jmvalin/aom,jmvalin/aom,shareefalis/libvpx,iniwf/webm.libvpx,Topopiccione/libvpx,matanbs/webm.libvpx,luctrudeau/aom,kim42083/webm.libvpx,liqianggao/libvpx,matanbs/webm.libvpx,Suvarna1488/webm.libvpx,webmproject/libvpx,abwiz0086/webm.libvpx,jmvalin/aom,gshORTON/webm.libvpx,Suvarna1488/webm.libvpx,GrokImageCompression/aom,ShiftMediaProject/libvpx,mbebenita/aom,shareefalis/libvpx,abwiz0086/webm.libvpx,jmvalin/aom,charup/https---github.com-webmproject-libvpx-,thdav/aom,charup/https---github.com-webmproject-libvpx-,mwgoldsmith/vpx,Laknot/libvpx,reimaginemedia/webm.libvpx,shyamalschandra/libvpx,hsueceumd/test_hui,smarter/aom,running770/libvpx,openpeer/libvpx_new,Acidburn0zzz/webm.libvpx,ittiamvpx/libvpx-1,Suvarna1488/webm.libvpx,abwiz0086/webm.libvpx,Laknot/libvpx,matanbs/vp982,matanbs/webm.libvpx,shacklettbp/aom,shyamalschandra/libvpx,Topopiccione/libvpx,mbebenita/aom,jmvalin/aom,VTCSecureLLC/libvpx,kalli123/webm.libvpx,mbebenita/aom,altogother/webm.libvpx,openpeer/libvpx_new,ShiftMediaProject/libvpx,Topopiccione/libvpx,mwgoldsmith/libvpx,iniwf/webm.libvpx,Maria1099/webm.libvpx,webmproject/libvpx,hsueceumd/test_hui,shyamalschandra/libvpx,pcwalton/libvpx,kleopatra999/webm.libvpx,mwgoldsmith/libvpx,webmproject/libvpx,pcwalton/libvpx,stewnorriss/libvpx,felipebetancur/libvpx,running770/libvpx,felipebetancur/libvpx,zofuthan/libvpx,goodleixiao/vpx,GrokImageCompression/aom,openpeer/libvpx_new,kim42083/webm.libvpx,altogother/webm.libvpx,Suvarna1488/webm.libvpx,iniwf/webm.libvpx,charup/https---github.com-webmproject-libvpx-,ShiftMediaProject/libvpx,shyamalschandra/libvpx,altogother/webm.libvpx,gshORTON/webm.libvpx,smarter/aom,kleopatra999/webm.libvpx,VTCSecureLLC/libvpx,shacklettbp/aom,gshORTON/webm.libvpx,jacklicn/webm.libvpx,mbebenita/aom,matanbs/vp982,ittiamvpx/libvpx-1,Distrotech/libvpx,Distrotech/libvpx,Laknot/libvpx,Maria1099/webm.libvpx,mbebenita/aom,kalli123/webm.libvpx,Topopiccione/libvpx,reimaginemedia/webm.libvpx,Topopiccione/libvpx,jdm/libvpx,kalli123/webm.libvpx,kleopatra999/webm.libvpx,pcwalton/libvpx,shareefalis/libvpx,luctrudeau/aom,jdm/libvpx,running770/libvpx,GrokImageCompression/aom,hsueceumd/test_hui,altogother/webm.libvpx,iniwf/webm.libvpx,stewnorriss/libvpx,VTCSecureLLC/libvpx,goodleixiao/vpx,reimaginemedia/webm.libvpx,reimaginemedia/webm.libvpx,goodleixiao/vpx,shyamalschandra/libvpx,altogother/webm.libvpx,charup/https---github.com-webmproject-libvpx-,openpeer/libvpx_new,lyx2014/libvpx_c,zofuthan/libvpx,VTCSecureLLC/libvpx,zofuthan/libvpx,matanbs/vp982,VTCSecureLLC/libvpx,Maria1099/webm.libvpx,lyx2014/libvpx_c,shyamalschandra/libvpx,GrokImageCompression/aom,mbebenita/aom,abwiz0086/webm.libvpx,liqianggao/libvpx,Distrotech/libvpx,shareefalis/libvpx,running770/libvpx,jacklicn/webm.libvpx,goodleixiao/vpx,liqianggao/libvpx,iniwf/webm.libvpx,Maria1099/webm.libvpx,webmproject/libvpx,gshORTON/webm.libvpx,pcwalton/libvpx,abwiz0086/webm.libvpx,jdm/libvpx,kleopatra999/webm.libvpx,mwgoldsmith/libvpx,kalli123/webm.libvpx,zofuthan/libvpx,zofuthan/libvpx,stewnorriss/libvpx,running770/libvpx,Laknot/libvpx,kim42083/webm.libvpx,ShiftMediaProject/libvpx,ittiamvpx/libvpx-1,openpeer/libvpx_new,liqianggao/libvpx,iniwf/webm.libvpx,abwiz0086/webm.libvpx,Suvarna1488/webm.libvpx,Laknot/libvpx,mbebenita/aom,openpeer/libvpx_new,reimaginemedia/webm.libvpx,jdm/libvpx,kalli123/webm.libvpx,liqianggao/libvpx,mbebenita/aom,jacklicn/webm.libvpx,Suvarna1488/webm.libvpx,mwgoldsmith/libvpx,thdav/aom,hsueceumd/test_hui,ShiftMediaProject/libvpx,felipebetancur/libvpx,mwgoldsmith/vpx,Distrotech/libvpx,matanbs/webm.libvpx,Acidburn0zzz/webm.libvpx,shareefalis/libvpx,running770/libvpx,reimaginemedia/webm.libvpx,Acidburn0zzz/webm.libvpx,lyx2014/libvpx_c,Acidburn0zzz/webm.libvpx,mwgoldsmith/vpx,matanbs/webm.libvpx,mwgoldsmith/libvpx,Distrotech/libvpx,mbebenita/aom,lyx2014/libvpx_c,charup/https---github.com-webmproject-libvpx-,charup/https---github.com-webmproject-libvpx-,smarter/aom,kleopatra999/webm.libvpx,kim42083/webm.libvpx,jdm/libvpx,gshORTON/webm.libvpx,luctrudeau/aom,matanbs/vp982,thdav/aom,stewnorriss/libvpx,Maria1099/webm.libvpx,zofuthan/libvpx,thdav/aom,matanbs/vp982,Distrotech/libvpx