remove unused variable in note plugin