BOSTON (AP) — Massachusetts voters have repealed a law that ties future increases in the state's gasoline tax to inflation.

The indexing provision was part of a 2013 transportation financing law that included a 3-cent increase in the gas tax to 24 cents per gallon to help pay for road and bridge projects.

The ballot question approved Tuesday will not lower the tax but will prevent it from going up automatically in the future as the Consumer Price Index rises. As a result, any increases will have to be voted on by legislators.

Opponents of indexing said automatic hikes amounted to "taxation without representation."

But state transportation officials and other supporters of the law argued that Massachusetts needed a consistent and reliable stream of revenue to help fix its crumbling transportation infrastructure.

North Shore results for 2014 state ballot questions

Community Question 1: Eliminating gas tax indexing Question 2: Expanding the beverage container deposit law Question 3: Expanding prohibitions on gaming Question 4: Earned sick time for employees
Salem Y: 6,300 | N: 6,386 Y: 4,035 | N: 9,061 Y: 4,909 | N: 8,108 Y: 8,268 | N: 4,730
Beverly Y: 7,888 | N: 6,446 Y: 3,638 | N: 10,887 Y: 5,746 | N: 8,681 Y: 8,010 | N: 6,369
Danvers Y: 5,874 | N: 3,974 Y: 1,490 | N: 8,552 Y: 3,588 | N: 6,384 Y: 4,898 | N: 5,010
Hamilton Y: 1,746 | N: 1,457 Y: 798 | N: 2,450 Y:1,614 | N: 1,619 Y: 1,617 | N: 1,577
Ipswich Y: 3,059 | N: 2,849 Y: 1,499 | N: 4,559 Y: 2,741 | N: 3,261 Y: 3,194 | N: 2,780
Marblehead Y: 4,843 | N: 4,610 Y: 2,746 | N: 6,889 Y: 4,754 | N: 4,819 Y: 5,024 | N: 4,496
Middleton Y: 1,992 | N: 1,347 Y: 542 | N: 2,844 Y: 1,200 | N: 2,171 Y: 1,506 | N: 1,842
Peabody Y: 10,747 | N:7,952 Y: 2,789 | N: 16,285 Y: 5,821 | N: 13,160 Y: 10,072 | N: 8,684
Swampscott Y: 3,247 | N: 3,170 Y: 1,551 | N: 5,007 Y: 2,688 | N: 3,838 Y: 3,542 | N: 2,909
Topsfield Y: 1,811 | N: 1,225 Y: 725 | N: 2,386 Y: 1,459 | N: 1,642 Y: 1,446 | N: 1,188
Wenham Y: 905 | N: 730 Y: 457 | N: 1,218 Y: 838 | N: 815 Y: 782 | N: 854
Totals Y: 48,412 | N: 40,146 Y: 20,270 | N: 70,138 Y: 35,358 | N: 54,498 Y: 48,359 | N: 40,439