Removed unused buffer variable