remove unused variable

$offset is not used in the function, so assigning a value is not necessary