Remove unused functions.
Fix a timing method bug for ocl path.
Remove useless finish operation in farneback