diff --git a/lib/Drupal/views/ViewExecutable.php b/lib/Drupal/views/ViewExecutable.php
index 3da3119f62d98dcbdd36d811ff810fd830a4f472..acbf83a9ab8c94cc282ffe8b845cb1ad5f50e38d 100644
--- a/lib/Drupal/views/ViewExecutable.php
+++ b/lib/Drupal/views/ViewExecutable.php
@@ -516,10 +516,6 @@ public function usePager() {
     if (!empty($this->pager)) {
       return $this->pager->use_pager();
     }
-    // Maybe other code stores something on the view object, so allow that.
-    else {
-      $this->{$name} = $value;
-    }
   }
 
   /**