import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;

@ObfuscatedName("gm")
@Implements("Link")
public class Link {
	@ObfuscatedName("h")
	@ObfuscatedSignature(
		descriptor = "Lgm;"
	)
	@Export("previous")
	public Link previous;
	@ObfuscatedName("v")
	@ObfuscatedSignature(
		descriptor = "Lgm;"
	)
	@Export("next")
	public Link next;

	@ObfuscatedName("h")
	@Export("remove")
	public void remove() {
		if (this.next != null) { // L: 8
			this.next.previous = this.previous; // L: 9
			this.previous.next = this.next; // L: 10
			this.previous = null; // L: 11
			this.next = null; // L: 12
		}
	} // L: 13
}
