Prussia took Ermland ( Warmia ) , Royal Prussia without the city of Danzig ( GdaÅ sk ) ( which in 1773 became a new province called West Prussia ) , northern areas of Greater Poland along the NoteÄ River ( the Netze District ) , and parts of Kuyavia ( including the city of Thorn ( ToruÅ ) ) . Frederick II of Prussia was elated with his success ; Prussia took most of the Polish Royal Prussia that stood between its possessions in the Kingdom of Prussia and the Margraviate of Brandenburg , taking Ermland ( Warmia ) , Royal Prussia without the city of Danzig ( GdaÅ sk ) ( which in 1773 became a new province called West Prussia ) , northern areas of Greater Poland along the NoteÄ River ( the Netze District ) , and parts of Kuyavia , ( also the Prussian city of Thorn ( ToruÅ ) ) .